import random


class Config(object):

    beas_url = 'http://127.0.0.1:5060'

    # 不同浏览器访问
    uas = [
        "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) "
        "Chrome/73.0.3683.103 Safari/537.36", \
        "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) "
        "Chrome/64.0.3282.140 Safari/537.36 Edge/17.17134", \
        "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:66.0) Gecko/20100101 Firefox/66.0"]

    # 随机选择user-agent
    def get_ua(self):
        au = random.choice(self.uas)
        return au
